package dom.xpath.query.xpath.expr;

/**
 * Abstract Expression with two arguments.
 * 
 * @author Workgroup DBIS, University of Konstanz 2005-07, ISC License
 * @author Christian Gruen
 */
public abstract class DualExpr extends Expression {
  /** First Expression. */
  public Expression expr1;
  /** Second Expression. */
  public Expression expr2;

  @Override
  public final boolean usesSize() {
    return expr1.usesSize() || expr2.usesSize();
  }

  @Override
  public final boolean usesPos() {
    return expr1.usesPos() || expr2.usesPos();
  }
}
